import store from '@/store'

export default {
  methods: {
    checkBtnPerm(type) {
      if (!store.state.user.setUserInfo) { return }
      const points = store.state.user.setUserInfo.roles.points
      return points.indexOf(type) !== -1
    }
  }
}
